﻿using UnityEngine;
using System.Collections;
using Dict.DataModel;

namespace Room
{
    public class RCLODAirWall : RCLODBase
    {
        private string modelResName;

        public RCLODAirWall(RoomCharactor owner)
            : base(owner)
        {
            type = LODType.AirWall;
        }

        public void Init(string blockRes)
        {
            this.modelResName = blockRes;

        }

        public override void DoResume()
        {
            base.DoResume();
            LoadModel(modelResName);
        }


        protected override void OnLoadModelComplete()
        {
            model.SetActive(true);
        }
    }
}

